<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<table border="1" width="100%">
	<tr>
		<td width="100px"><s:label value="电影" theme="simple"/></td>
		<td>
			<s:textfield name="video.id" cssStyle="background-color:#cccccc" readonly="true" theme="simple"/>
			<s:textfield name="video.movie.id" cssStyle="background-color:#cccccc" readonly="true" theme="simple"/>
			<s:textfield name="video.movie.nameCn" disabled="true" theme="simple"/>
		</td>
	</tr>
	<tr>
		<td width="100px"><s:label value="名称" theme="simple"/></td>
		<td><s:select name="video.name" list="{'正片','预告片','拍摄记录片','花絮'}" theme="simple"></s:select>
		</td>
	</tr>
	
	<tr>
		<td width="100px"><s:label value="提供者" theme="simple"/></td>
		<td><s:select name="video.provider" list="{'tudou','youku','tv189','sohu','sina','pptv', '56','qiyi','xunlei'}" headerKey="00" headerValue="请选择" theme="simple"></s:select> （如需增加，修改tiles/video/edit.jsp）</td>
	</tr>
	<tr>
		<td width="100px"><s:label value="类型" theme="simple"/></td>
		<td><s:select name="video.type" list="#{1:'标清',2:'高清',3:'超清'}"  listKey="key" listValue="value"  theme="simple"></s:select>
		</td>
	</tr>
	<tr>
		<td width="100px"><s:label value="地址" theme="simple"/></td>
		<td><s:textfield name="video.url" theme="simple" size="50"/></td>
	</tr>
	<tr>
		<td><s:label label="" value="长度" theme="simple"/></td>
		<td><s:textfield name="video.length" theme="simple"/>（格式：hh:mm:ss）</td>
	</tr>
	<tr>
		<td colspan="2"><b>以下可选</b></td>
		
	</tr>
	
	
	<tr>
		<td width="100px"><s:label value="对白" theme="simple" /></td>
		<td>
			<s:select name="video.dialogLanguage.id" list="languages" listKey="id" listValue="nameCn" theme="simple"></s:select>
		</td>
	</tr>
	<tr>
		<td width="100px"><s:label value="字幕" theme="simple"/></td>
		<td>
			<s:select name="video.subtitleLanguage.id" list="languages" listKey="id" listValue="nameCn" theme="simple"></s:select>
		</td>
	</tr>
	<tr>
		<td width="100px"><s:label value="缩略图" theme="simple"/></td>
		<td><img id="image" src="<s:property value="video.image.src"/>" width="100"/>
		<s:a href="javascript:showDialog('image!select','image','image')" id="thumb">选择</s:a>
		<script>$("#thumb").sabrina({ title: "选择缩略图", height:"500", width:"600", iframe: "image!select"});</script>
		<s:hidden id="imageData" name="video.image.id" theme="simple"/>
		</td>
	</tr>

	
	<tr>
		<td><s:label label="" value="格式" theme="simple"/></td>
		<td><s:textfield name="video.format" theme="simple"/></td>
		
	</tr>
	
</table>
<script>
var v = document.getElementById("name");
v.focus();
//v.value=window.clipboardData.getData("text");
</script>